/**
 * Created by ren on 16/9/22.
 */

const API_ADDRESS = 'http://admin.pf.vacomall.cn/'

const API = {

  MENUS: API_ADDRESS + 'getMenus',
  ACCOUNTLIST: API_ADDRESS + 'account/list',
  ACCOUNTSAVE: API_ADDRESS + 'account/save',
  ACCOUNT: API_ADDRESS + 'account',
  ACCOUNTGETROLE: API_ADDRESS + 'account/getRolesWithCheckedById',
  ACCOUNTUPDATE: API_ADDRESS + 'account/update',
  CITYLIB: API_ADDRESS + 'cityLib/getTreeNodes',
  ACCOUNTASSIGNROLE: API_ADDRESS + 'account/assignRole',
  ACCOUNTGETROLESWITHCHECKEDBYID: API_ADDRESS + 'account/getRolesWithCheckedById',
  ACCOUNTUPDATEPASSWORD: API_ADDRESS + 'account/updatepassword',
  ROLELIST: API_ADDRESS + 'role/list',
  ROLESAVE: API_ADDRESS + 'role/save',
  ROLE: API_ADDRESS + 'role',
  ROLEUPDATE: API_ADDRESS + 'role/update',
  ROLEDELETE: API_ADDRESS + 'role/delete',
  ROLEASSIGNPERMISSION: API_ADDRESS + 'role/assignPermission',
  ROLEGETPERMISSIONSWITHCHECKEDBUID: API_ADDRESS + 'permission/getPermissionsWithCheckedById',
  PERMISSIONLIST: API_ADDRESS + 'permission/getTreeByRootId',
  PERMISSIONSAVE: API_ADDRESS + 'permission/save',
  PERMISSION: API_ADDRESS + 'permission',
  PERMISSIONUPDATE: API_ADDRESS + 'permission/update',
  PERMISSIONSELETE: API_ADDRESS + 'permission/delete',
  PERMISSIONGETTREENODES: API_ADDRESS + 'permission/getTreeNodes',

  CATEGORYTREE: API_ADDRESS + 'goodscategory/tree',
  CATEGORYTREEADD: API_ADDRESS + 'goodscategory/add',
  CATEGORYTREEUPDATE: API_ADDRESS + 'goodscategory/update',
  CATEGORYTREEGET: API_ADDRESS + 'goodscategory/get',
  CAREGORYBRANDSFIND: API_ADDRESS + 'goodscategory/brands/find',
  CATEGORYBANDSADD: API_ADDRESS + 'goodscategory/brands/add',
  CATEGORYBANDSDELETE: API_ADDRESS + 'goodscategory/brands/delete',

  UNITLIST: API_ADDRESS + 'unit/list',
  UNITLISTADD: API_ADDRESS + 'unit/add',
  UNITUPDATE: API_ADDRESS + 'unit/update',
  UNITGET: API_ADDRESS + 'unit/get',

  GOODSATTRIBUTELIST: API_ADDRESS + 'goodsattribute/listByCateId',
  GOODSATTRIBUTESAVE: API_ADDRESS + 'goodsattribute/save',
  GOODSATTRIBUTEUPDATE: API_ADDRESS + 'goodsattribute/update',
  GOODSATTRIBUTEGET: API_ADDRESS + 'goodsattribute/get',
  GOODSATTRIBUTWDELETE: API_ADDRESS + 'goodsattribute/delete',

  GOODSATTRIVALUELIST: API_ADDRESS + 'goodsattrivalue/listByAttriId',
  GOODSATTRIVALUEADD: API_ADDRESS + 'goodsattrivalue/add',
  GOODSATTRIVALUEDELETE: API_ADDRESS + 'goodsattrivalue/value/delete',
  GOODSATTRIVALUEUPDATE: API_ADDRESS + 'goodsattrivalue/update',
  GOODSATTRIVALUEGET: API_ADDRESS + 'goodsattrivalue/get',

  GOODSBRANDLIST: API_ADDRESS + 'goodsbrand/list',
  GOODSBRANDADD: API_ADDRESS + 'goodsbrand/add',
  GOODSBRANDUPDATE: API_ADDRESS + 'goodsbrand/update',
  GOODSBRANDGET: API_ADDRESS + 'goodsbrand/get',
  GOODSBRANDGDELETE: API_ADDRESS + 'goodsbrand/delete',
  GOODSBRANDJSON: API_ADDRESS + 'goodsbrand/json',

  CITYLIBTREE: API_ADDRESS + 'cityLib/tree',
  CITYLIBADD: API_ADDRESS + 'cityLib/add',
  CITYLIBUPDATE: API_ADDRESS + 'cityLib/update',
  CITYLIBGET: API_ADDRESS + 'cityLib/get',
  CITYLIBDELETE: API_ADDRESS + 'cityLib/delete',

  GOODSSPECIFICATIONADD: API_ADDRESS + 'goodsspecification/add',
  GOODSSPECIFICATIONGET: API_ADDRESS + 'goodsspecification/get',
  GOODSSPECIFICATIONDELETE: API_ADDRESS + 'goodsspecification/delete',
  GOODSSPECIFICATIONFIND: API_ADDRESS + 'goodsspecification/find',
  GOODSSPECIFICATIONUPDATE: API_ADDRESS + 'goodsspecification/update',

  SPECIVALUEADD: API_ADDRESS + 'goodsspecification/value/add',
  SPECIVALUEGET: API_ADDRESS + 'goodsspecification/value/get',
  SPECIVALUEDELETE: API_ADDRESS + 'goodsspecification/value/delete',
  SPECIVALUEFIND: API_ADDRESS + 'goodsspecification/value/find',
  SPECIVALUEUPDATE: API_ADDRESS + 'goodsspecification/value/update',

  USERRANKLIST: API_ADDRESS + 'userrank/list',
  USERRANKFINDALL: API_ADDRESS + 'userrank/findall',
  USERRABKSAVE: API_ADDRESS + 'userrank/save',
  USERRANKDELETE: API_ADDRESS + 'userrank/delete',
  USERRANKUPDATE: API_ADDRESS + 'userrank/update',
  USERRANKGET: API_ADDRESS + 'userrank',

  USERLIST: API_ADDRESS + 'user/list',
  USERSAVE: API_ADDRESS + 'user/save',
  USERUPDATE: API_ADDRESS + 'user/update',
  USERGET: API_ADDRESS + 'user',
  USERRESETPWD: API_ADDRESS + 'user/resetPwd',

  USERADDRESSLIST: API_ADDRESS + 'userdeliveryaddress/list',
  USERADDRESSSAVE: API_ADDRESS + 'userdeliveryaddress/save',
  USERADDRESSGET: API_ADDRESS + 'userdeliveryaddress',
  USERADDRESSUPDATE: API_ADDRESS + 'userdeliveryaddress/update',
  USERADDRESSFIND: API_ADDRESS + 'userdeliveryaddress/findbyuserid',
  USERADDRESSDELETE: API_ADDRESS + 'userdeliveryaddress/delete',

  USERFAVOURITEDELETE: API_ADDRESS + 'userfavorite/delete',
  USERFAVOURITEFIND: API_ADDRESS + 'userfavorite/findbyuserandspuid',
  USERFAVOURITELIST: API_ADDRESS + 'userfavorite/list',
  USERFAVOURITESAVE: API_ADDRESS + 'userfavorite/save',
  USERFAVOURITEUPDATE: API_ADDRESS + 'userfavorite/update',
  USEFAVOURITEGET: API_ADDRESS + 'userfavorite',

  USERSUPPLIERFAVOURITE: API_ADDRESS + 'usersupplierfavorite/list',

  SPULIST: API_ADDRESS + 'spu/list',
  SPUENABLE: API_ADDRESS + 'spu/enable',
  SPUDISABLED: API_ADDRESS + 'spu/disabled',
  SPUAUDITING: API_ADDRESS + 'spu/spuAuditing',

  BALANCELOGLIST: API_ADDRESS + 'balanceLog/list',
  LOGINLOGLIST: API_ADDRESS + 'loginLog/list',
  ORDERLOGLIST: API_ADDRESS + 'orderLog/list',
  SPULOGLIST: API_ADDRESS + 'spuBrowseLog/list',
  EXCEPTIONLOGLIST: API_ADDRESS + 'exceptionLog/list',
  SYSTEMLOGLIST: API_ADDRESS + 'systemLog/list',

  ORDERLIST: API_ADDRESS + 'order/list',
  ORDERITEMLIST: API_ADDRESS + 'order/item/list',
  ORDERSTATELIST: API_ADDRESS + 'order/state/list',
  ORDERSUPPLIERLIST: API_ADDRESS + 'order/supplier/list',

  SUPPLIERDELETE: API_ADDRESS + 'supplier/delete',
  SUPPLIERLIST: API_ADDRESS + 'supplier/findList',
  SUPPLIERSUPPLIERAVA: API_ADDRESS + 'supplier/findSupplierAva',
  SUPPLIERGET: API_ADDRESS + 'supplier/get',
  SUPPLIERSAVE: API_ADDRESS + 'supplier/save',
  SUPPLIERUPDATE: API_ADDRESS + 'supplier/update',
  findBySupIdAndTemId: API_ADDRESS + 'supplyCityTemplate/findBySupIdAndTemId',
  SUPPLIERRESETPWD: API_ADDRESS + 'supplier/resetPwd',

  SUPPLIERCERTIFICATIONDELETE: API_ADDRESS + 'supplierCertification/delete',
  SUPPLIERCERTIFICATIONSAVE: API_ADDRESS + 'supplierCertification/save',
  SUPPLIERCERTIFICATIONLIST: API_ADDRESS + 'supplierCertification/selectAll',
  SUPPLIERCERTIFICATIONUPDATE: API_ADDRESS + 'supplierCertification/update',
  SUPPLIERCERTIFICATIONGET: API_ADDRESS + 'supplierCertification/get',

  SUPPLIERRANKDELETE: API_ADDRESS + 'supplierRank/delete',
  SUPPLIERRANKGET: API_ADDRESS + 'supplierRank/get',
  SUPPLIERRANKSAVE: API_ADDRESS + 'supplierRank/save',
  SUPPLIERRANKUPDATE: API_ADDRESS + 'supplierRank/update',
  SUPPLIERRANKLIST: API_ADDRESS + 'supplierRank/findList',

  SUPPLIERCOMPANYGET: API_ADDRESS + 'supplierCompany/get',
  SUPPLIERCOMPANYSAVE: API_ADDRESS + 'supplierCompany/save',
  SUPPLIERCOMPANYLIST: API_ADDRESS + 'supplierCompany/selectAll',
  SUPPLIERCOMPANYUPDATE: API_ADDRESS + 'supplierCompany/update',
  SUPPLIERCOMPANYCITY: API_ADDRESS + 'supplierCompany/findPCD',
  SUPPLYCITYTEMPLATESAVE: API_ADDRESS + 'supplyCityTemplate/save',
  SUPPLYCITYTEMPLATEFINDBYSUPPLYID: API_ADDRESS + 'supplyCityTemplate/findBySupplyId',
  SUPPLYCITYTEMPLATEFINDPAGE: API_ADDRESS + 'supplyCityTemplate/findPage',
  SUPPLYCITYDELETE: API_ADDRESS + '/supplyCity/delete',
  SUPPLYCITYTEMPLATEDELETE: API_ADDRESS + 'supplyCityTemplate/delete',
  SUPPLYCITYTEMPLATEGET: API_ADDRESS + 'supplyCityTemplate/get',
  SUPPLYCITYTEMPLATEUPDATE: API_ADDRESS + '/supplyCityTemplate/update',
  SUPPLIERCATEGORYADD: API_ADDRESS + 'supplier/category/add',
  SUPPLIERCATEGORYFIND: API_ADDRESS + 'supplier/category/find',
  SUPPLIERCATEGORYDELETE: API_ADDRESS + 'supplierCategory/delete',
  SUPPLIERCATEGORYUPDATE: API_ADDRESS + 'supplierCategory/update',
  SUPPLIERCATEGORYGET: API_ADDRESS + 'supplierCategory/get',
  SUPPLIERBALANCEDELETE: API_ADDRESS + 'supplierbalance/delete',
  SUPPLIERBALANCEGET: API_ADDRESS + 'supplierbalance/get',
  SUPPLIERBALANCELIST: API_ADDRESS + 'supplierbalance/list',
  SUPPLIERBALANCESAVE: API_ADDRESS + 'supplierbalance/save',
  SUPPLIERBALANCEUPDATE: API_ADDRESS + 'supplierbalance/update',
  SUPPLIERBALANCEFINDLIST: API_ADDRESS + 'supplierbalance/findList',

  BANLANCEGET: API_ADDRESS + 'balance/get',
  BALANCELIST: API_ADDRESS + 'balance/findPage',
  BALANCECOLAUDIT: API_ADDRESS + 'balance/colAudit',
  BALANCEFUNDAUDIT: API_ADDRESS + 'balance/fundAudit',
  BALANCEEXPORT: API_ADDRESS + 'balance/export',

  FINDORDERBYBALANCE: API_ADDRESS + 'balance/findOrderByBalance',
  FINDTRANSFERLIST: API_ADDRESS + 'balance/findTransfer',
  FUNDTRANSFER: API_ADDRESS + 'balance/fundTransfer',
  FUNDTRANSFERLIST: API_ADDRESS + 'balance/findList',

  SUPPLIERCITYDELETE: API_ADDRESS + 'supplyCity/delete',
  SUPPLIERCITYSAVE: API_ADDRESS + 'supplyCity/save',
  SUPPLIERCITYUPDATE: API_ADDRESS + 'supplyCity/update',
  SUPPLIERCITYGET: API_ADDRESS + 'supplyCity/get',

  ADVERTISEDELETE: API_ADDRESS + 'advertise/delete',
  ADVERTISEGET: API_ADDRESS + 'advertise/get',
  ADVERTISELIST: API_ADDRESS + 'advertise/getList',
  ADVERTISEFINDLIST: API_ADDRESS + 'advertise/findList',
  ADVERTISESAVE: API_ADDRESS + 'advertise/save',
  ADVERTISEUPDATE: API_ADDRESS + 'advertise/update',
  ADVERTISECITYLIBDELETE: API_ADDRESS + 'advertiseCityLib/delete',
  ADVERTISECITYLIBLIST: API_ADDRESS + 'advertiseCityLib/findList',
  ADVERTISECITYLIBGET: API_ADDRESS + 'advertiseCityLib/get',
  ADVERTISECITYLIBSAVE: API_ADDRESS + 'advertiseCityLib/saveToCityLib',
  ADVERTISECITYLIBUPDATE: API_ADDRESS + 'advertiseCityLib/update',
  ADVERTISECITYGETALL: API_ADDRESS + 'advertiseCityLib/getAll',
  ADVERTISECITYLIBBYID: API_ADDRESS + 'advertiseCityLib/findByAdverId',
  ADVERTISESHELF: API_ADDRESS + 'advertiseShelf/shelfAdvertise',
  ADVERTISEUNSHELF: API_ADDRESS + 'advertiseShelf/unshelfAdvertise',

  INDEXLAYERDELETE: API_ADDRESS + 'indexLayer/delete',
  INDEXLAYERGETLIST: API_ADDRESS + 'indexLayer/getList',
  INDEXLAYERSAVE: API_ADDRESS + 'indexLayer/save',
  INDEXLAYERUPDATE: API_ADDRESS + 'indexLayer/update',
  INDEXLAYERGET: API_ADDRESS + 'indexLayer/get',
  INDEXLAYERUPDATEIMAGE: API_ADDRESS + 'indexLayer/uploadImage',
  UPLODADIMAGES: API_ADDRESS + 'indexLayer/uplodadImages',
  INDEXTPLLIST: API_ADDRESS + 'indexTpl/findList',
  INDEXTPLDELETE: API_ADDRESS + 'indexTpl/delete',
  INDEXTPLGET: API_ADDRESS + 'indexTpl/get',
  INDEXTPLSAVE: API_ADDRESS + 'indexTpl/save',
  INDEXTPLUPDATE: API_ADDRESS + 'indexTpl/update',
  INDEXCATGORYFINDLIST: API_ADDRESS + 'indexCatgory/findList',
  INDEXCATGORYGET: API_ADDRESS + 'indexCatgory/get',
  INDEXCATGORYUPDATE: API_ADDRESS + 'indexCatgory/update',
  INDEXCATGORYSAVE: API_ADDRESS + 'indexCatgory/save',

  BRANDTAGDELETE: API_ADDRESS + 'brandAdvertiseTag/delete',
  BRANDTAGLIST: API_ADDRESS + 'brandAdvertiseTag/findList',
  BRANDTAGGET: API_ADDRESS + 'brandAdvertiseTag/get',
  BRANDTAGSAVE: API_ADDRESS + 'brandAdvertiseTag/save',
  BRANDTAGUPDATE: API_ADDRESS + 'brandAdvertiseTag/update',
  BRANDADVERTISEDELETE: API_ADDRESS + 'brandAdvertise/delete',
  BRANDADVERTISELIST: API_ADDRESS + 'brandAdvertise/findList',
  BRANDADVERTISEFINDBUTAG: API_ADDRESS + 'brandAdvertise/findBAbyTag',
  BRANDADVERTISEFINDBYSU: API_ADDRESS + 'brandAdvertise/findBAbySup',
  BRANDADVERTISEGET: API_ADDRESS + 'brandAdvertise/get',
  BRANDADVERTISESAVE: API_ADDRESS + 'brandAdvertise/save',
  BRANDADVERTISEUPDATE: API_ADDRESS + 'brandAdvertise/update',
  BRANDCITYDELETE: API_ADDRESS + 'brandAdvertiseCityLib/delete',
  BRANDCITYFINDBRANDBYCITY: API_ADDRESS + 'brandAdvertiseCityLib/findBAbyCityId',
  BRANDCITYLIST: API_ADDRESS + 'brandAdvertiseCityLib/findList',
  BRANDCITYGET: API_ADDRESS + 'brandAdvertiseCityLib/get',
  BRANDCITYSAVE: API_ADDRESS + 'brandAdvertiseCityLib/save',
  BRANDCITYUPDATE: API_ADDRESS + 'brandAdvertiseCityLib/update',
  BRANDSHELF: API_ADDRESS + 'brandAdvertiseShelf/brandShelf',
  BRANDUNSHELF: API_ADDRESS + 'brandAdvertiseShelf/brandUnShelf',

  FINDLISTBYCITY: API_ADDRESS + 'indexLayer/findListByCity',

  GETUSERNAME: API_ADDRESS + 'user/getUserInfo'
}
export default API
